// js-cookie插件，可以操作cookie
import Cookies from "js-cookie";
const Token = "token";
// 生成cookie
export function setToken(token) {
  Cookies.set(Token, token);
}

// 获取cookie
export function getToken() {
  return Cookies.get(Token);
}

// 删除cookie
export function removeToken() {
  Cookies.remove(Token);
}
